package cn.iocoder.yudao.module.vos.controller.admin.secretaccount.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 密钥余额充值 Request VO")
@Data
public class SecretAccountRechargeReqVO {

    @Schema(description = "密钥ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1001")
    @NotNull(message = "密钥ID不能为空")
    private Long id;

    @Schema(description = "充值金额(元)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100.00")
    @NotNull(message = "充值金额不能为空")
    @DecimalMin(value = "0.01", message = "充值金额必须大于 0")
    private BigDecimal rechargeAmount;

    @Schema(description = "备注", example = "人工充值")
    private String remark;

    @Schema(description = "产品权限")
    private String productPermissions;
}
